package cn.support.neo.mvp.model.entity.element;

import android.os.Parcel;
import android.os.Parcelable;


/**
 * Name:用户信息的元素
 * Author: WK（wangkun@xjzhicheng.com)
 * Date: 2016-11-25
 * Describe: 用户信息元素的基本属性
 */
public class User implements Parcelable {

    private String id;
    private String name;
    private String nick;
    private String icon;
    private String phoneNum;
    private String colleage;
    private String studentId;
    private String mood;
    private Object iconByte;
    private int vstatus;
    /*关注和粉丝 OtherUserInfo*/
    private int isFocu;
    private int focus;
    private int fans;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getColleage() {
        return colleage;
    }

    public void setColleage(String colleage) {
        this.colleage = colleage;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getMood() {
        return mood;
    }

    public void setMood(String mood) {
        this.mood = mood;
    }

    public Object getIconByte() {
        return iconByte;
    }

    public void setIconByte(Object iconByte) {
        this.iconByte = iconByte;
    }

    public int getVstatus() {
        return vstatus;
    }

    public void setVstatus(int vstatus) {
        this.vstatus = vstatus;
    }

    public int getIsFocu() {
        return isFocu;
    }

    public void setIsFocu(int isFocu) {
        this.isFocu = isFocu;
    }

    public int getFocus() {
        return focus;
    }

    public void setFocus(int focus) {
        this.focus = focus;
    }

    public int getFans() {
        return fans;
    }

    public void setFans(int fans) {
        this.fans = fans;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.nick);
        dest.writeString(this.icon);
        dest.writeString(this.phoneNum);
        dest.writeString(this.colleage);
        dest.writeString(this.studentId);
        dest.writeString(this.mood);
        dest.writeInt(this.vstatus);
        dest.writeInt(this.isFocu);
        dest.writeInt(this.focus);
        dest.writeInt(this.fans);
    }

    public User() {
    }

    protected User(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.nick = in.readString();
        this.icon = in.readString();
        this.phoneNum = in.readString();
        this.colleage = in.readString();
        this.studentId = in.readString();
        this.mood = in.readString();
        this.vstatus = in.readInt();
        this.isFocu = in.readInt();
        this.focus = in.readInt();
        this.fans = in.readInt();
    }

    public static final Creator<User> CREATOR = new Creator<User>() {
        @Override
        public User createFromParcel(Parcel source) {
            return new User(source);
        }

        @Override
        public User[] newArray(int size) {
            return new User[size];
        }
    };
}
